﻿<Window x:Class="LogicCircuit.DialogProbeHistory"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:lc="clr-namespace:LogicCircuit"
	xmlns:properties="clr-namespace:LogicCircuit.Properties"
	WindowStartupLocation="CenterOwner"
	Title="{x:Static properties:Resources.TitleProbeHistory}"
	Style="{StaticResource DialogWindow}"
>
	<lc:AutoGrid>
		<StackPanel Orientation="Horizontal" Grid.ColumnSpan="2">
			<Label Content="{x:Static properties:Resources.TitleBitWidth}"/>
			<TextBlock Text="{Binding Path=BitWidth}" VerticalAlignment="Center"/>
		</StackPanel>

		<ListBox Grid.ColumnSpan="2" ItemsSource="{Binding Path=History}" Margin="8,0" SelectionMode="Extended"/>

		<Button HorizontalAlignment="Left" Click="ButtonMarkClick" IsEnabled="{Binding Path=MarkAllowed}"
			Content="{x:Static properties:Resources.TitleMark}"
		/>
		<Button HorizontalAlignment="Right" IsDefault="True" IsCancel="True"
			Content="{x:Static properties:Resources.TitleOK}"
		/>
	</lc:AutoGrid>
</Window>
